package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.operateLog.OperateLogDO;
import com.qk.dto.operateLog.OperateLogDTO;
import com.qk.entity.OperateLog;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 操作日志控制器
 * @Author:Mr.m
 * @Date: 2025-10-20 14:17
 * @Description:
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    /**
     * 获取操作日志列表
     * @param dto
     * @return
     */
    @GetMapping
    public Result list(OperateLogDTO dto){
        PageResult<OperateLogDO> result = operateLogService.logList(dto);
        return Result.success(result);
    }
}
